<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="Premium HTML Template by wwww.creativestable.com" />
    <meta name="keywords" content="" />
    <title>新闻详细信息</title>
    <link rel="icon" type="image/ico" href="favicon.ico" />
    
    <link href="css/reset.css" media="all" rel="stylesheet" type="text/css" />
    <link href="css/style.css" media="all" rel="stylesheet" type="text/css" /> 
    <script src="resources/scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
    <!--[if lt IE 8]>
    <link rel="stylesheet" type="text/css" href="css/ie.css" />
    <script type="text/javascript" src="js/dd_belatedpng.js"></script>
    <script> DD_belatedPNG.fix('.pngfix'); </script>
    <![endif]--> 
    <script type="text/javascript">
    $(function() {
				$.ajax({ //请求登录处理页
					url : "json/info!load", //登录处理页
					tppe : "get",
					dataType : "json",
					async : true,
					//传送请求数据
					success : function(data) { //登录成功后返回的数据
						//根据返回值进行状态显示
						$.each(data.data,function(i,v){
						$("#primary").append(
				 			 "<h1 class='project-title'>"+v.title+"</h1>"+
				 			 "<p>类别："+v.kind+"&nbsp;&nbsp;&nbsp;发布时间："+v.date+"</p>"+
           					 "<p class='subhead'>"+v.content+"</p><hr />"                     
				);  
						});
					}
				});
			});
      </script>
</head>

<body>
    <div id="primary">
            <h3>&#187;详细内容</h3><hr/>
            <!-- <h1 class="project-title">项目一</h1>
            <p class="subhead">Surrounded by rolling green hills and dense poplar forests we are nestled in the beautiful and pristine Chilcotin Valley.</p>
            <hr />     -->                 
    </div><!--End primary -->
</body>

</html>